Terraform Variable
The Terraform Variable tab allows you to specify and manage module variables required by Terraform configurations for precise customization. Variables can be defined per workspace to tailor deployments to your cloud environment.
Overview
You can add, edit, or remove key-value pairs representing Terraform variables. These variables are passed to your module during execution to configure infrastructure resources dynamically.
AWS Example
When using AWS as your target environment, typical variables may include:

Key | Description | Example Value |
---|---|---|
bucket_name | Name of the S3 bucket to create or manage | test1 |
region | AWS region for resource deployment | us-east-1 |
environment | Environment label (e.g., dev, prod) | dev |
owner | Owner or responsible team | ms |
GCP Example
When using GCP as your target environment, variables typically include project and network configuration:

Key | Description | Example Value |
---|---|---|
project_id | GCP project identifier | atmosly-439606 |
region | GCP region for deployment | us-central1 |
network_name | Name of the VPC network | my-custom-vpc-ms |
subnet_name | Subnet name within the VPC | my-subnet-ms |
subnet_ip | Subnet IP range | 10.0.1.0/24 |
Managing Variables
- Navigate to Workspace Details > Terraform Variable.
- Click the pencil icon next to any variable to edit its value.
- To delete a variable, click the trash icon.
- Use the Add Variable button (if available) to define new key-value pairs.
- Click Save to apply changes.
Tip: Ensure variable names match those expected in your Terraform modules to avoid configuration errors during deployment.